import service from '../request'

// 获取平台树
export function getPtTree() {
  return service({
    url: '/BS/trackLine',
    method: 'get',

  })
}
// 获取目标树
export function getMbTree() {
  return service({
    url: '/BS/targetAttribute',
    method: 'get',

  })
}
// 获取武器树
export function getWqTree() {
  return service({
    url: '/BS/weaponPlatform',
    method: 'get',

  })
}
// 删除平台模型
export function deletePtTree(params) {
  return service({
    url: `/BS/DrawTrackLine2/remove`,
    method: 'delete',
    params: {
      layerName: params.name,
      keyValue: params.keyValue
    }
  })
}
// 删除平台图形
export function deletePtTreePatterns(params) {
  return service({
    url: `/BS/deletePatterns/remove`,
    method: 'delete',
    params: {
      keyValue: params.keyValue,
    }
  })
}
// 删除目标模型
export function deleteMbTree(params) {
  return service({
    url: `/BS/targetAttribute/remove`,
    method: 'delete',
    params: {
      layerName: params.name,
      keyValue: params.keyValue
    }
  })
}
// 删除目标图形
export function deleteMbTreePatterns(params) {
  return service({
    url: `/BS/targetAttribute/DrawPatternsRemove`,
    method: 'delete',
    params: {
      keyValue: params.keyValue,
    }
  })
}
// 删除武器模型
export function deleteWqTree(params) {
  return service({
    url: `/BS/weaponPlatform/remove`,
    method: 'delete',
    params: {
      layerName: params.name,
      keyValue: params.keyValue
    }
  })
}
// 删除目标图形
export function deleteWqTreePatterns(params) {
  return service({
    url: `/BS/weaponPlatform/DrawPatternsRemove`,
    method: 'delete',
    params: {
      keyValue: params.keyValue,
    }
  })
}
// 获取测向线
export function getCXLine() {
  return service({
    url: '/Draw/DrawLine/geoJson',
    method: 'get',

  })
}
// 获取热力图
export function getHostMap() {
  return service({
    url: '/HM/GET_HEAT_MAP',
    method: 'get',

  })
}
// 绘制航迹线
export function getHJLine(data) {
  return service({
    url: '/Draw/add/flightPath',
    method: 'post',
    data: data
  })
}